package com.examination.client.service;

import com.examination.client.domian.dto.BuyMessageDTO;
import com.examination.client.domian.dto.ScanSendMessageDTO;
import com.examination.client.domian.dto.SendMessageDTO;
import com.examination.client.domian.dto.SiteMessageDTO;
import com.examination.client.domian.vo.MessageCountVO;

public interface MessageService {
    /**
     * 发送短信
     *
     * @param sendMessageDTO
     * @return
     */
    Boolean send(SendMessageDTO sendMessageDTO);

    /**
     * 可用短信条数
     *
     * @return
     */
    Integer availableNum();

    /**
     * 扫码发送短信
     *
     * @param scanSendMessageDTO
     * @return
     */
    Boolean scanSend(ScanSendMessageDTO scanSendMessageDTO);

    /**
     * 短信条数
     * @return
     */
    MessageCountVO count();

    Boolean save(SiteMessageDTO siteMessageDTO);

    /**
     * 发送验证短信
     *
     * @param phone
     * @return
     */
    String sendCode(String phone);

}
